package com.nlp.visualization.crawler.processor;

import com.nlp.visualization.service.weibo.main.Main;
import org.apache.commons.collections.map.HashedMap;

import java.util.Map;

/**
 * @author LXM
 * @Title: ${file_name}
 * @Description: 从链接获取哪个处理类来处理
 * @date 2018/3/4下午2:29
 */
public class ProcessorUtil {

    static Map<String, String> classMap = new HashedMap();

    static {
        classMap.put("163", "com.nlp.visualization.crawler.processor.ProcessorNeteasy");
        classMap.put("sina", "com.nlp.visualization.crawler.processor.ProcessorSina");
    }

    public static String getClass(String str) {
        return classMap.get(str);
    }

}